﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Duson.Controls.Pager
{
    /// <summary>
    /// 分页输入方式
    /// </summary>
    public enum PageIndexBoxType
    {
        /// <summary>
        /// TextBox
        /// </summary>
        TextBox,
        /// <summary>
        /// DropDownList
        /// </summary>
        DropDownList
    }

    /// <summary>
    /// 分页方式
    /// </summary>
    public enum PagingMethod
    {
        /// <summary>
        /// PostBack
        /// </summary>
        PostBack,
        /// <summary>
        /// Url
        /// </summary>
        Url
    }

    /// <summary>
    /// 常量
    /// </summary>
    public class ConstParams
    {
        /// <summary>
        /// 跳转时的参数名称
        /// </summary>
        public static readonly string Url_Params = "pageNo";

        /// <summary>
        /// 页码输入框ID前缀(将会加上UniqueID)
        /// </summary>
        public static readonly string PageTextID_Suffix = "txtPage";

        /// <summary>
        /// 跳转按钮ID前缀(将会加上UniqueID)
        /// </summary>
        public static readonly string GoButtonID_Suffix = "btnGoto";

        /// <summary>
        /// 页码下拉框ID前缀(将会加上UniqueID)
        /// </summary>
        public static readonly string SelectPageID_Suffix = "lstPage";
    }
}
